package com.lms.service.apply;

import com.lms.bean.UserApply;
import com.lms.pojo.UserApplyData;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ApplyService {
    /*根据userCode获取其对应的申请记录*/
    List<UserApplyData> getUserApplyDataList(String userCode);
    /*根据userCode获取其对应的UserApply*/
    List<UserApply> getUserApplyList(String userCode);
    /*核心方法*/
    int apply(String userCode,String labCode, String applyCount, String reason, String week, String interval);
    /*取消申请*/
    int cancelApply(String applyID);
    /*获取申请数量*/
    int getApplyCount();
    /*获取未被用户浏览的以审批记录个数*/
    int getCheckCount(String userCode);
    /*用户以浏览过审批记录*/
    boolean checked(String userCode);
}
